gtk4.git
12 years agowin32: handle again gtk-font-name
Ignacio Casal Quinteiro [Mon, 27 Jan 2014 08:45:01 +0000 (09:45 +0100)]
win32: handle again gtk-font-name

This code is ugly but it seems to do the work

12 years agowin32: scale slider with marks was off by 2 pixels
Ignacio Casal Quinteiro [Mon, 27 Jan 2014 08:39:25 +0000 (09:39 +0100)]
win32: scale slider with marks was off by 2 pixels

12 years agoUse suggested-action style
Matthias Clasen [Sun, 26 Jan 2014 15:41:26 +0000 (10:41 -0500)]
Use suggested-action style

When using header bars, make the default button in
GtkDialog use the suggested-action style.

12 years agoUpdated Hebrew properties translation
Yosef Or Boczko [Sun, 26 Jan 2014 02:30:55 +0000 (04:30 +0200)]
Updated Hebrew properties translation

Signed-off-by: Yosef Or Boczko <yoseforb@src.gnome.org>
12 years agoUpdated Hebrew translation
Yosef Or Boczko [Sun, 26 Jan 2014 02:30:51 +0000 (04:30 +0200)]
Updated Hebrew translation

Signed-off-by: Yosef Or Boczko <yoseforb@src.gnome.org>
12 years agoUpdate expected output for accessible tests
Matthias Clasen [Sat, 25 Jan 2014 19:31:11 +0000 (14:31 -0500)]
Update expected output for accessible tests

12 years agoExclude GtkPopover::pointing-to from the defaultvalue test
Matthias Clasen [Sat, 25 Jan 2014 19:20:51 +0000 (14:20 -0500)]
Exclude GtkPopover::pointing-to from the defaultvalue test

12 years agoRevert "resources: Make Raleigh the real name of the theme"
Matthias Clasen [Sat, 25 Jan 2014 19:02:52 +0000 (14:02 -0500)]
Revert "resources: Make Raleigh the real name of the theme"

This reverts commit 6fa703b506a597e19d60f5f35d06547b4bf6f7fa.

This did not work after all - we're trying to load the theme
css by its name, and the alias makes that not work.

12 years agoGtkGrid: fix property installation
Matthias Clasen [Sat, 25 Jan 2014 18:49:27 +0000 (13:49 -0500)]
GtkGrid: fix property installation

The previous commit was misapplied.

12 years agowindow: add note about window references
David Schleef [Sat, 10 Dec 2011 22:29:16 +0000 (14:29 -0800)]
window: add note about window references

https://bugzilla.gnome.org/show_bug.cgi?id=665928

12 years agogtkgrid: Use g_object_class_install_properties() and g_object_notify_by_pspec()
Javier Jardón [Sun, 14 Nov 2010 02:49:26 +0000 (03:49 +0100)]
gtkgrid: Use g_object_class_install_properties() and g_object_notify_by_pspec()

https://bugzilla.gnome.org/show_bug.cgi?id=634793

12 years agogtkaccelgroup: Use g_object_class_install_properties() and g_object_notify_by_pspec()
Javier Jardón [Sun, 14 Nov 2010 02:38:04 +0000 (03:38 +0100)]
gtkaccelgroup: Use g_object_class_install_properties() and g_object_notify_by_pspec()

12 years agoClarify documentation of GtkAboutDialog::logo
Christian Dywan [Fri, 10 Dec 2010 10:26:07 +0000 (11:26 +0100)]
Clarify documentation of GtkAboutDialog::logo

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=636594
12 years agoRemove deprecations and warnings from tests
Matthias Clasen [Sat, 25 Jan 2014 02:09:34 +0000 (21:09 -0500)]
Remove deprecations and warnings from tests

This removes one instance of gtk_dialog_get_action_area.

12 years agoRemove deprecation warnings from demos and tests
Matthias Clasen [Sat, 25 Jan 2014 02:08:59 +0000 (21:08 -0500)]
Remove deprecation warnings from demos and tests

There were a few uses of gtk_widget_get_root_window that
need to be removed.

12 years agoDeprecate gtk_widget_get_root_window
Matthias Clasen [Sat, 25 Jan 2014 01:15:10 +0000 (20:15 -0500)]
Deprecate gtk_widget_get_root_window

The root window is a fairly X-centric concept, and it
really has no place in the GtkWidget API. Plus, this
is a rarely-used one-line convenience function with
poor documentation.

12 years agoDrop internal uses of gtk_widget_get_root_window
Matthias Clasen [Sat, 25 Jan 2014 01:13:01 +0000 (20:13 -0500)]
Drop internal uses of gtk_widget_get_root_window

This function is just a one-line convenience function that
is about to be deprecated.

12 years agonotebook: don't use a null page
William Jon McCann [Fri, 24 Jan 2014 23:40:57 +0000 (18:40 -0500)]
notebook: don't use a null page

12 years agoBug 711298 - "Edit Scheduled Transaction" window way too modal
John Ralls [Sun, 1 Dec 2013 22:02:11 +0000 (14:02 -0800)]
Bug 711298 - "Edit Scheduled Transaction" window way too modal

Put dialogs and utility windows in the same level as normal and
toolbar windows so that Gtk can control their stacking instead of
forcing them, rather unnaturally, to be on top of all other windows,
even other application windows, even when another application has
focus.

12 years agoRespect 12/24-hour clock setting in the file chooser
Matthias Clasen [Fri, 24 Jan 2014 23:04:51 +0000 (18:04 -0500)]
Respect 12/24-hour clock setting in the file chooser

Based on a patch by Garrett Regier in bug 699224.

12 years agoUse GDateTime in the file chooser
Garrett Regier [Sat, 7 Dec 2013 20:41:28 +0000 (12:41 -0800)]
Use GDateTime in the file chooser

Signed-off-by: Garrett Regier <garrett@yorba.org>
https://bugzilla.gnome.org/show_bug.cgi?id=699224

12 years agonotebook: add a style class when the child tab is reorderable
William Jon McCann [Fri, 24 Jan 2014 21:29:31 +0000 (16:29 -0500)]
notebook: add a style class when the child tab is reorderable

12 years agoaboutdialog: make use-header-bar override work from bindings
Cosimo Cecchi [Sun, 19 Jan 2014 22:48:05 +0000 (14:48 -0800)]
aboutdialog: make use-header-bar override work from bindings

Instead of setting "use-header-bar" from gtk_about_dialog_new(),
override its default value by inspecting the properties at constructor()
time. This makes it work from bindings as well, since they don't use the
convenience C constructor.

https://bugzilla.gnome.org/show_bug.cgi?id=722574

12 years agoGtkHeaderBar: try harder to find the best window icon
Matthias Clasen [Fri, 24 Jan 2014 20:40:37 +0000 (15:40 -0500)]
GtkHeaderBar: try harder to find the best window icon

GtkWindow has 4 (!) APIs for setting window icons, and we
have to try them all in the right order to find the right
icon. This commit makes it so, and keeps the icon list
manipulation inside gtkwindow.c by adding a private API
for getting a single icon at the right size.

https://bugzilla.gnome.org/show_bug.cgi?id=722515

12 years agonotebook: add a style for prelighted labels
William Jon McCann [Fri, 24 Jan 2014 17:50:19 +0000 (12:50 -0500)]
notebook: add a style for prelighted labels

12 years agowin32: set color for scale marks
Ignacio Casal Quinteiro [Fri, 24 Jan 2014 17:27:43 +0000 (18:27 +0100)]
win32: set color for scale marks

12 years agowin32: add margin to scale trough
Ignacio Casal Quinteiro [Fri, 24 Jan 2014 16:57:59 +0000 (17:57 +0100)]
win32: add margin to scale trough

12 years agowin32: add more width to the slider to not cut it when using marks
Ignacio Casal Quinteiro [Fri, 24 Jan 2014 16:30:28 +0000 (17:30 +0100)]
win32: add more width to the slider to not cut it when using marks

12 years agoUse a define for the default theme name
William Jon McCann [Fri, 24 Jan 2014 13:04:04 +0000 (08:04 -0500)]
Use a define for the default theme name

12 years agoresources: Make Raleigh the real name of the theme
William Jon McCann [Fri, 24 Jan 2014 12:55:00 +0000 (07:55 -0500)]
resources: Make Raleigh the real name of the theme

And make gtk-default.css an alias to it.

12 years agoMSVC Builds: "Install" gtk3-demo.png
Chun-wei Fan [Fri, 24 Jan 2014 07:00:55 +0000 (15:00 +0800)]
MSVC Builds: "Install" gtk3-demo.png

This is needed to show the gtk3-demo icon and is needed for the "Multiple
Views" demo to work.  Hmm, why couldn't I do a for loop for a batch in a
property sheet ? :|

12 years agoUpdate Visual Studio Build Files
Chun-wei Fan [Fri, 24 Jan 2014 06:20:07 +0000 (14:20 +0800)]
Update Visual Studio Build Files

-"Install" the newly-added public gtkpopover.h
-Make the gtk3-demo projects up-to-date

12 years agoAdd an #ifdef to shut gtk-doc up
Matthias Clasen [Fri, 24 Jan 2014 02:08:34 +0000 (21:08 -0500)]
Add an #ifdef to shut gtk-doc up

gtk-doc complains that the stock macros are deprecated,
but not in an #ifdef block. So add one.

12 years agoBuild gtk-doc scanner without deprecation warnings
Matthias Clasen [Thu, 23 Jan 2014 23:49:12 +0000 (18:49 -0500)]
Build gtk-doc scanner without deprecation warnings

Use of deprecated symbols is expected in this code,
no need to warn about it.

12 years agoFix gtkenums doc section
Matthias Clasen [Thu, 23 Jan 2014 23:48:46 +0000 (18:48 -0500)]
Fix gtkenums doc section

12 years agoAdd versioned dependencies in pc files
Matthias Clasen [Thu, 23 Jan 2014 23:26:07 +0000 (18:26 -0500)]
Add versioned dependencies in pc files

This helps with runtime deps between devel packages.
https://bugzilla.gnome.org/show_bug.cgi?id=722638

12 years agoSlight rewording of some docs
Matthias Clasen [Thu, 23 Jan 2014 22:41:37 +0000 (17:41 -0500)]
Slight rewording of some docs

12 years agoTrivial formatting fix
Matthias Clasen [Wed, 22 Jan 2014 20:21:49 +0000 (15:21 -0500)]
Trivial formatting fix

12 years agoresources: move resources into a subdirectory
William Jon McCann [Thu, 23 Jan 2014 23:59:20 +0000 (18:59 -0500)]
resources: move resources into a subdirectory

12 years agoImprove docs for focus-line-pattern
William Jon McCann [Thu, 23 Jan 2014 21:23:24 +0000 (16:23 -0500)]
Improve docs for focus-line-pattern

12 years agogdk: enable rgba visuals by default
William Jon McCann [Wed, 22 Jan 2014 23:48:45 +0000 (18:48 -0500)]
gdk: enable rgba visuals by default

Unless GDK_RGBA=0 is set.

https://bugzilla.gnome.org/show_bug.cgi?id=630217

12 years agoUse 16px as default button and small toolbar icon sizes
William Jon McCann [Thu, 23 Jan 2014 02:02:58 +0000 (21:02 -0500)]
Use 16px as default button and small toolbar icon sizes

https://bugzilla.gnome.org/show_bug.cgi?id=350190

12 years agodocs: Add more a reference in GtkHeaderBar
Yosef Or Boczko [Thu, 23 Jan 2014 16:28:17 +0000 (18:28 +0200)]
docs: Add more a reference in GtkHeaderBar

12 years agostock icons: print icons no longer fuzzy
Jakub Steiner [Thu, 23 Jan 2014 11:01:00 +0000 (12:01 +0100)]
stock icons: print icons no longer fuzzy

- improve legibility by aligning to the grid
- less dramatic stroke around application-exit

12 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 23 Jan 2014 09:53:51 +0000 (10:53 +0100)]
Updated Spanish translation

12 years agoUpdated Scottish Gaelic translation
GunChleoc [Wed, 22 Jan 2014 20:10:54 +0000 (21:10 +0100)]
Updated Scottish Gaelic translation

12 years agowindow: add missing return
Carlos Garnacho [Wed, 22 Jan 2014 19:49:13 +0000 (20:49 +0100)]
window: add missing return

A branch in the if/else if/else was missing a return, that was
unintended.

12 years agomagnifier: Fix compiler warning
Carlos Garnacho [Wed, 22 Jan 2014 19:48:51 +0000 (20:48 +0100)]
magnifier: Fix compiler warning

12 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Wed, 22 Jan 2014 18:41:26 +0000 (19:41 +0100)]
Updated POTFILES.in and POTFILES.skip

12 years agoMerge branch 'popovers'
Carlos Garnacho [Wed, 22 Jan 2014 17:42:29 +0000 (18:42 +0100)]
Merge branch 'popovers'

12 years agopopover: Don't overdraw background
Carlos Garnacho [Wed, 22 Jan 2014 17:32:16 +0000 (18:32 +0100)]
popover: Don't overdraw background

It was only done so the background would connect visually to the popover
tail, but then it brings aliasing issues when the border is drawn over the
background. Instead, overdraw the tail, so it also fills the gap left by
the border.

12 years agopopover: Update child visibility when scrolling happens
Carlos Garnacho [Wed, 22 Jan 2014 15:45:01 +0000 (16:45 +0100)]
popover: Update child visibility when scrolling happens

If pointing_to starts falling outside of the parent scrollable allocation,
the popover will be automatically hidden, and shown back again when
pointing_to scrolls back to visibility.

12 years agopopover: Track parent scrollable adjustments
Carlos Garnacho [Wed, 22 Jan 2014 15:43:37 +0000 (16:43 +0100)]
popover: Track parent scrollable adjustments

This makes sure popovers follow the relative_to widget if it is
contained within a GtkScrollable.

12 years agotexthandle: Update child visibility of handles within scrollables
Carlos Garnacho [Wed, 22 Jan 2014 15:41:00 +0000 (16:41 +0100)]
texthandle: Update child visibility of handles within scrollables

If the rect a handle points to starts falling outside of the parent
scrollable allocation, the handle will be automatically hidden, and
shown again when the rectangle is visible too.

12 years agotexthandle: Track parent scrollable adjustments
Carlos Garnacho [Wed, 22 Jan 2014 15:39:10 +0000 (16:39 +0100)]
texthandle: Track parent scrollable adjustments

This makes sure texthandles follow the parent if it is contained within a
GtkScrollable.

12 years agotexthandle: ensure handles are recreated on parent hierarchy changes
Carlos Garnacho [Wed, 22 Jan 2014 15:33:47 +0000 (16:33 +0100)]
texthandle: ensure handles are recreated on parent hierarchy changes

This ensures the handles come out right even if the parent widget is
reparented to a different toplevel.

12 years agopopover: fix g-i warning
Carlos Garnacho [Wed, 22 Jan 2014 15:27:44 +0000 (16:27 +0100)]
popover: fix g-i warning

12 years agopopover: Fix documentation blurb
Carlos Garnacho [Wed, 22 Jan 2014 15:26:13 +0000 (16:26 +0100)]
popover: Fix documentation blurb

The grabbing behavior is no longer exclusively controlled by the caller,
mention gtk_popover_set_modal().

12 years agotexthandle: Use GtkWindow private popover API.
Carlos Garnacho [Fri, 17 Jan 2014 17:12:57 +0000 (18:12 +0100)]
texthandle: Use GtkWindow private popover API.

12 years agopopover: use GtkWindow private popover API
Carlos Garnacho [Fri, 17 Jan 2014 17:12:31 +0000 (18:12 +0100)]
popover: use GtkWindow private popover API

12 years agowindow: Make popover window private
Carlos Garnacho [Fri, 17 Jan 2014 17:12:10 +0000 (18:12 +0100)]
window: Make popover window private

12 years agowindow: Use GList to store popover structs
Carlos Garnacho [Wed, 15 Jan 2014 12:28:32 +0000 (13:28 +0100)]
window: Use GList to store popover structs

When all popovers are removed on destroy(), if a popover is nested into
(eg. with relative_to within) another popover, the removal of one can
lead to the other being removed while the hashtable is being iterated,
which would lead to undefined behavior in further iterations.

Then, use a GList to store popovers, iterating can be made more resilient
on these situations, and unless on pathological cases there's not going
to be as many of those popovers as to cause performance decreases at the
times those are iterated.

12 years agotextview: Set GTK_STYLE_CLASS_OSD on text selection popovers
Carlos Garnacho [Tue, 14 Jan 2014 17:09:29 +0000 (18:09 +0100)]
textview: Set GTK_STYLE_CLASS_OSD on text selection popovers

12 years agoentry: Set GTK_STYLE_CLASS_OSD on text selection popovers
Carlos Garnacho [Tue, 14 Jan 2014 17:09:02 +0000 (18:09 +0100)]
entry: Set GTK_STYLE_CLASS_OSD on text selection popovers

12 years agopopover: Do not set GTK_STYLE_CLASS_OSD directly
Carlos Garnacho [Tue, 14 Jan 2014 17:06:38 +0000 (18:06 +0100)]
popover: Do not set GTK_STYLE_CLASS_OSD directly

That's up to the caller, popovers are by design not only meant to
have that role.

12 years agopopover: Fix allocation of CSS margins
Carlos Garnacho [Tue, 14 Jan 2014 17:02:38 +0000 (18:02 +0100)]
popover: Fix allocation of CSS margins

that was forgotten about, leaving no room for theme shadows that'd
make popovers look less flat.

12 years agopopover: Flip popovers positioning on left/right on RTL.
Carlos Garnacho [Tue, 14 Jan 2014 11:31:25 +0000 (12:31 +0100)]
popover: Flip popovers positioning on left/right on RTL.

If widgets have GTK_TEXT_DIRECTION_RTL, popovers being positioned
on GTK_POS_LEFT/RIGHT will default to appearing on the other side
too.

12 years agowindow: Remove popovers on dispose() before unsetting focus.
Carlos Garnacho [Mon, 13 Jan 2014 11:33:33 +0000 (12:33 +0100)]
window: Remove popovers on dispose() before unsetting focus.

The popovers may return keyboard grabs to previous widgets, so if
called after unsetting the focus, the window may be left with a
dangling GtkWidget that would cause crash at later dispose() calls.

12 years agoentry: Improve positioning of touch selection magnifier
Carlos Garnacho [Mon, 13 Jan 2014 11:01:43 +0000 (12:01 +0100)]
entry: Improve positioning of touch selection magnifier

Always show completely above or below entry to avoid covering
content, and limit horizontal position so it doesn't overflow
to the right.

12 years agoImplement wfh functions
Matthias Clasen [Fri, 10 Jan 2014 22:43:42 +0000 (17:43 -0500)]
Implement wfh functions

With only get_preferred_width and get_preferred_height implemented,
we end up calling the GtkBin height_for_width implmementation, which
knows nothing about the margins and paddings that GtkPopover needs.
As a result, a listbox added to a popover was getting cut off
at the bottom.

12 years agopopover: Remember last focused widget on the toplevel when a popover is shown
Carlos Garnacho [Fri, 10 Jan 2014 14:23:12 +0000 (15:23 +0100)]
popover: Remember last focused widget on the toplevel when a popover is shown

This is so the previously focused widget can regain focus when a modal popover
is dismissed.

12 years agopopover: Add a "modal" boolean property to GtkPopover
Carlos Garnacho [Fri, 10 Jan 2014 11:04:17 +0000 (12:04 +0100)]
popover: Add a "modal" boolean property to GtkPopover

This property is TRUE by default, when a popover is modal, it
will automatically set a GTK+ grab on the popover, and grab
the keyboard focus into the popover.

12 years agogtk-demo: Fix crash after running popovers demo
Carlos Garnacho [Fri, 10 Jan 2014 13:07:44 +0000 (14:07 +0100)]
gtk-demo: Fix crash after running popovers demo

The GtkBuilder window containing the complex popover UI was left
dangling, and with a dangling pointer to its former child, causing
crashes on gtk_grab_notify() after the popover was destroyed.

12 years agopopover: Fix memory management of popovers
Carlos Garnacho [Thu, 9 Jan 2014 16:21:43 +0000 (17:21 +0100)]
popover: Fix memory management of popovers

Popovers are strange in the sense that they aren't attached to a
parent directly, they rely on the relative_to widget so the toplevel
is shared, and when they have a parent, it is the toplevel itself,
not relative_to. This also means that there are conditions where the
popover loses it's parent, so they must survive unparenting.

The previous code would be floating the last reference as soon as the
parent is gone, but it was non-obvious who'd own that reference. So
fix this situation by granting the ownership of popovers to their
relative_to widget, an extra reference may be held by the toplevel
when the popover has a parent, but the popover object will be
guaranteed to be alive as long as the parent lives.

This way, memory management of popovers is as hidden from the user
as regular widgets within containers are, users are free to call
gtk_widget_destroy() on a popover, but it'd eventually become
destructed when relative_to is.

12 years agopopover: Implement keyboard focus behavior
Carlos Garnacho [Thu, 9 Jan 2014 11:53:29 +0000 (12:53 +0100)]
popover: Implement keyboard focus behavior

When a popover is focused, the focus is forwarded so the first
child what would get the focus actually gets it. Also, implement
correct focus chain, so the keyboard focus stays within the popover
when navigating with keyboard.

12 years agotexthandle: Fix arguments in ::style-updated callback
Carlos Garnacho [Thu, 9 Jan 2014 17:39:45 +0000 (18:39 +0100)]
texthandle: Fix arguments in ::style-updated callback

12 years agogtkmain: Let windows handle WM-related events before delivering to the grab_widget
Carlos Garnacho [Tue, 7 Jan 2014 16:49:31 +0000 (17:49 +0100)]
gtkmain: Let windows handle WM-related events before delivering to the grab_widget

This makes it possible to move/resize client-side decorated windows that are
otherwise obscured by a GTK+ grab somewhere else, either a popover within the
window itself or a modal dialog above the window.

12 years agoentry: Show a GtkMagnifier popover on touch selection
Carlos Garnacho [Tue, 24 Dec 2013 18:12:57 +0000 (19:12 +0100)]
entry: Show a GtkMagnifier popover on touch selection

12 years agotexthandle: Remove relative_to API
Carlos Garnacho [Mon, 23 Dec 2013 18:15:30 +0000 (19:15 +0100)]
texthandle: Remove relative_to API

It's unused now, GtkTextHandle uses widget coordinates.

12 years agotexthandles: Use GtkWindow popovers API
Carlos Garnacho [Mon, 23 Dec 2013 18:09:10 +0000 (19:09 +0100)]
texthandles: Use GtkWindow popovers API

This offers the same behavior, but GDK_WINDOW_TEMP windows aren't used
anymore, involving less translations from/to root coordinates, plus no
glitches in having handles snap to content as windows move.

12 years agowindow: Keep track of popover children mapped status
Carlos Garnacho [Mon, 23 Dec 2013 18:05:33 +0000 (19:05 +0100)]
window: Keep track of popover children mapped status

In order to maintain visibility of the GdkWindow that's the parent window
of the popover widget.

12 years agowindow: Add gtk_window_get_popover_position()
Carlos Garnacho [Mon, 23 Dec 2013 18:04:48 +0000 (19:04 +0100)]
window: Add gtk_window_get_popover_position()

A getter to complement the setter

12 years agoentry: Set use-underline in popover GtkToolButtons
Carlos Garnacho [Mon, 23 Dec 2013 17:45:01 +0000 (18:45 +0100)]
entry: Set use-underline in popover GtkToolButtons

12 years agotextview: Set use-underline in popover GtkToolButtons
Carlos Garnacho [Mon, 23 Dec 2013 17:44:34 +0000 (18:44 +0100)]
textview: Set use-underline in popover GtkToolButtons

12 years agotextview: Use GtkMagnifier on touch selection
Carlos Garnacho [Tue, 24 Dec 2013 23:37:07 +0000 (00:37 +0100)]
textview: Use GtkMagnifier on touch selection

The magnifier renders the area covered by the finger, making it easier to follow
the text being selected.

12 years agoAdd GtkMagnifier
Carlos Garnacho [Wed, 11 Dec 2013 14:42:10 +0000 (15:42 +0100)]
Add GtkMagnifier

This is a private widget that takes another widget on construction, and is able
to render parts of it, possibly at a different magnification level.

12 years agopixelcache: check whether cached surface and cairo_t scales match
Carlos Garnacho [Wed, 11 Dec 2013 14:41:08 +0000 (15:41 +0100)]
pixelcache: check whether cached surface and cairo_t scales match

12 years agogtk-demo: Add GtkPopovers demo
Carlos Garnacho [Fri, 8 Nov 2013 15:12:10 +0000 (16:12 +0100)]
gtk-demo: Add GtkPopovers demo

In this demo several widget create popovers with different complexities,
positions, and grabbing behavior.

12 years agopopover: Add documentation
Carlos Garnacho [Wed, 13 Nov 2013 14:11:21 +0000 (15:11 +0100)]
popover: Add documentation

12 years agopopover: Honor GtkContainer::border-width
Carlos Garnacho [Wed, 13 Nov 2013 10:02:47 +0000 (11:02 +0100)]
popover: Honor GtkContainer::border-width

The border width is now set around the contained widget.

12 years agopopover: remove GTK+ grab (if any) on unmap
Carlos Garnacho [Wed, 13 Nov 2013 09:49:54 +0000 (10:49 +0100)]
popover: remove GTK+ grab (if any) on unmap

If there is a GTK+ grab on the popover, ensure that it's removed when it's
unmapped. If no GTK+ grab was performed on the popover, this function will
do nothing.

12 years agopopover: listen harder on the widget being pointed to
Carlos Garnacho [Wed, 13 Nov 2013 09:47:13 +0000 (10:47 +0100)]
popover: listen harder on the widget being pointed to

Hierarchy, size allocation and widget visibility are now listened
to in order to update the popover state accordingly.

12 years agoIntroduce GtkPopover
Carlos Garnacho [Tue, 12 Nov 2013 15:55:23 +0000 (16:55 +0100)]
Introduce GtkPopover

Now that the GtkBubbleWindow object has been cleaned up and made
more generic, rename it as GtkPopover and make it public.

12 years agobubblewindow: Remove popup/popdown() APIs
Carlos Garnacho [Tue, 12 Nov 2013 13:57:39 +0000 (14:57 +0100)]
bubblewindow: Remove popup/popdown() APIs

Those functions aren't as useful anymore, hiding/showing can be
controlled by setting the widget visibility, and grabbing can be
achieved by performing a GTK+ grab.

12 years agoentry: Avoid bubblewindow popup/popdown API
Carlos Garnacho [Tue, 12 Nov 2013 13:35:17 +0000 (14:35 +0100)]
entry: Avoid bubblewindow popup/popdown API

Besides setting all positioning properties at once, popup() would just
show the widget, so do that directly after just updating the position.

12 years agotextview: Avoid bubblewindow popup/popdown API
Carlos Garnacho [Tue, 12 Nov 2013 13:22:08 +0000 (14:22 +0100)]
textview: Avoid bubblewindow popup/popdown API

Besides setting all positioning properties at once, popup() would just
show the widget, so do that directly after just updating the position.

12 years agobubblewindow: Point to the entire widget area by default
Carlos Garnacho [Tue, 12 Nov 2013 11:56:40 +0000 (12:56 +0100)]
bubblewindow: Point to the entire widget area by default

This way pointing_to is not fully needed, unless you're pointing
to an specific rectangle within the widget, passing NULL would unset
the region too.

12 years agobubblewindow: check the border-radius when rendering the bubble tail.
Carlos Garnacho [Tue, 12 Nov 2013 11:41:24 +0000 (12:41 +0100)]
bubblewindow: check the border-radius when rendering the bubble tail.

12 years agobubblewindow: Improve overflow cases
Carlos Garnacho [Tue, 12 Nov 2013 11:15:53 +0000 (12:15 +0100)]
bubblewindow: Improve overflow cases

If the bubble window doesn't fit into one direction, it must
lay at the other side of the pointed_to rectangle.

12 years agobubblewindow: Make it relative to GtkWidget coordinates
Carlos Garnacho [Mon, 11 Nov 2013 13:27:19 +0000 (14:27 +0100)]
bubblewindow: Make it relative to GtkWidget coordinates

GdkWindows are gone now from the API, the pointed_to rectangle
is from now on relative to the widget allocation. GtkTextView
and GtkEntry were updated to adapt to this change.